using System;
using System.Collections.Generic;
using System.Text;

namespace AdministracjaSzkola
{
    public class Kontroler 
    {
        public T get<T>(string zapytanie)
        {
            T obiekt = default(T);
            ICanBeTransported obj_inter = obiekt as ICanBeTransported;
            return (T)(obj_inter.get(zapytanie));

        }

        // update or insert
        public string save<T>(T obiekt)
        {
            ICanBeTransported obj_inter = obiekt as ICanBeTransported;

            return obj_inter.save();
        }

        public string delete<T>(T obiekt)
        {
            ICanBeTransported obj_inter = obiekt as ICanBeTransported;

            return obj_inter.delete();
        }
    }
}
